


export default class GestureConfig {

    private static _instance: GestureConfig;
    public static get Instance(): GestureConfig {
        if (this._instance == null) {
            this._instance = new GestureConfig();
        }
        return this._instance;
    }

    get gestureRec() {
        return this._gestureRec;
    }

    private _gestureRec =
        {
            gesture1: {
                shape: "-",
                direcListArray:
                    [
                        [1, 1, 1, 1, 1, 1, 1, 1, 1],
                        [2, 2, 2, 2, 2, 2, 1, 1, 1],
                        [2, 2, 2, 2, 2, 2, 2, 2, 1],
                        [2, 2, 1, 1, 1, 1, 1, 8, 1],

                    ]
            },
            gesture2: {
                shape: "|",
                direcListArray:
                    [
                        [7, 7, 7, 7, 7, 7, 7, 7, 1],
                        [7, 7, 7, 7, 7, 7, 7, 7, 7],
                        [7, 7, 7, 7, 7, 8, 7, 7, 1],

                    ]
            },
            gesture3: {
                shape: "W",
                direcListArray:
                    [
                        [7, 7, 3, 2, 7, 8, 3, 2, 1],
                        [7, 7, 2, 3, 1, 8, 2, 3, 1],
                        [7, 8, 3, 8, 8, 3, 3, 3, 1],
                        [7, 8, 3, 1, 7, 8, 2, 2, 1],
                        [7, 8, 3, 3, 7, 8, 3, 3, 1]
                    ]
            },
            gesture4: {
                shape: "O",
                direcListArray:
                    [
                        [3, 3, 2, 1, 7, 6, 5, 4, 1],
                        [3, 2, 1, 8, 7, 6, 5, 4, 1],
                        [7, 8, 1, 2, 2, 3, 5, 5, 3],
                        [6, 7, 8, 1, 2, 3, 5, 5, 1],
                        [6, 7, 1, 2, 2, 3, 4, 5, 1],
                        [6, 7, 8, 1, 2, 3, 4, 5, 1]
                    ]
            },
            gesture5: {
                shape: "M",
                direcListArray:
                    [
                        [2, 2, 8, 8, 3, 3, 7, 7, 1],
                        [3, 3, 8, 8, 3, 2, 7, 7, 1],
                        [2, 2, 7, 2, 2, 8, 7, 7, 1],
                        [3, 2, 8, 1, 2, 2, 8, 7, 1],
                        [2, 2, 8, 8, 3, 2, 8, 7, 1],
                        [3, 2, 8, 7, 3, 2, 8, 7, 1],
                        [3, 8, 8, 2, 1, 7, 7, 7, 1],
                        [3, 3, 3, 7, 1, 3, 1, 8, 1]
                    ]
            },
            gesture6: {
                shape: "S",
                direcListArray:
                    [
                        [5, 5, 7, 8, 1, 8, 6, 4, 1],
                        [5, 6, 7, 1, 8, 7, 6, 5, 1],
                        [5, 7, 1, 1, 7, 6, 5, 4, 1],
                        [5, 7, 1, 1, 8, 6, 5, 4, 1],
                        [5, 6, 8, 1, 8, 6, 5, 4, 1],
                        [5, 6, 8, 8, 8, 6, 6, 5, 5],
                        [5, 7, 8, 8, 6, 6, 6, 6, 1],
                        [6, 6, 7, 8, 8, 8, 6, 5, 1],
                        [6, 6, 7, 8, 8, 7, 6, 5, 1]
                    ]
            },
            gesture7: {
                shape: "V",
                direcListArray:
                    [
                        [7, 7, 7, 2, 2, 2, 2, 2, 1],
                        [7, 7, 7, 8, 2, 2, 2, 2, 1],
                        [8, 8, 8, 8, 3, 3, 3, 2, 1],
                        [7, 7, 7, 1, 2, 3, 3, 3, 1],
                        [7, 7, 7, 2, 3, 2, 2, 2, 1],
                        [7, 7, 7, 8, 1, 2, 2, 2, 1],
                    ]
            },
            gesture8: {
                shape: "Z",
                direcListArray:
                    [
                        [1, 1, 6, 6, 6, 1, 1, 1, 1],
                        [1, 1, 6, 6, 7, 1, 1, 1, 1],
                        [1, 1, 6, 6, 6, 1, 1, 1, 1],
                        [1, 6, 6, 7, 8, 1, 1, 1, 1],
                        [1, 1, 6, 6, 6, 1, 1, 1, 1],
                        [1, 1, 1, 6, 6, 6, 8, 1, 1],
                        [1, 1, 8, 6, 6, 6, 8, 1, 1],
                    ]
            },
        }


}
